<?php

Class Conexao {

    public function abrirConexao() {
        
        
        try {
            //$conn = new PDO('mysql:host=localhost;dbname=cactussegu','cactussegu','cactus123');
            $conn = new PDO('mysql:host=localhost;dbname=cactus','root','');
        } catch (Exception $exc) {
            echo $exc->getTraceAsString();
        }
           
        return $conn;
                
    }
    
    public function fecharConexao(){        
        $conn = null;
        return $conn;        
    }

}

?>
